<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script type="text/javascript" src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
    <title>欢迎使用shop-cloud-api系统</title>
<style type="text/css">
h1{
	text-align:center;
	margin-top:20%;
} 
</style>
</head>
<body>
 	<div><h1>欢迎使用shop-cloud-api系统</h1></div>
</body>
 <script type="text/javascript">  
    $(document).ready(function(){  
        var saveDataAry=[];
        var data1={"cmd":"getGoodsList",
        			   "app":"iOS",
        			   "version":"1.0.0",
        			   "ts":"123454",
        			   "params" : {
        				   "userid":"22",
        				   "page":"1",
	        			   "num":"20",
	        			   "type": "0",
	        			   "sort": "0",
	        			   "kind": "0",
        				   /* "areaid":"1",
        				   "type": "4", */
        				   // "areaid":"1",
	        			   /* "page":"1",
	        			   "num":"10", */
	        			   /*"type":"1",
	        			   "sort":"1", */
	        			   "verify":"1234545454545" }
        				};
        saveDataAry.push(data1);
        alert(data1);
        $.ajax({ 
	            type:"POST", 
	            url:"api/getGoodsList.do",
	            dataType:"json",
	            contentType:"application/json",               
	            data:JSON.stringify(data1), 
	            success:function(data){ 
            			alert(data.result);
	            },
            		error: function(e) { 
            			alert("1111");
            			alert(e); 
            		}
         }); 
    });
</script>
</html>